﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WpfApp4DataGrid.ViewModel;

namespace WpfApp4DataGrid
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            // b站大神同款视频教程 https://www.bilibili.com/video/BV1mJ411F7zG?p=9
            InitializeComponent();

            MainViewModel viewModel = new MainViewModel();
            viewModel.Query();

            this.DataContext = viewModel;
        }

        private void cbAll_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("点击了全选");

        }

        private void CheckBox_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("点击了单选");
        }
    }
}
